//
//  VerticalButton.m
//  TenMinDemo
//
//  Created by Shawn Li on 2021/3/10.
//  Copyright © 2021 CYXiang. All rights reserved.
//

#import "VerticalButton.h"

@implementation VerticalButton

//- (instancetype)initWithCoder:(NSCoder *)coder{
//    self = [super initWithCoder:coder];
//
//    return [super initWithCoder:coder];
//
//}
//
//- (instancetype)initWithFrame:(CGRect)frame{
//    return [super initWithFrame:frame];
//}


//- (void)layoutSubviews{
//    [super layoutSubviews];
//    CGSize mainSize = self.frame.size;
//    CGSize imageSize = self.imageView.frame.size;
//    CGSize titleSize = self.titleLabel.frame.size;
//    CGRect imageF = self.imageView.frame;
//    self.titleLabel.frame = CGRectMake(0, mainSize.height-titleSize.height, mainSize.width, titleSize.height);
//    self.imageView.frame = CGRectMake((mainSize.width-imageSize.width)/2.0, 0, imageSize.width, imageSize.height);
//    self.titleLabel.textAlignment = NSTextAlignmentCenter;
//
////    (65,-52,-3,0)
////
////    (-18,5,0,0)
//    self.imageEdgeInsets = UIEdgeInsetsMake(-self.titleLabel.intrinsicContentSize.height*0.5, self.titleLabel.intrinsicContentSize.width*0.5, self.titleLabel.intrinsicContentSize.height*0.5, -self.titleLabel.intrinsicContentSize.width*0.5);
//    self.titleEdgeInsets = UIEdgeInsetsMake(self.imageView.intrinsicContentSize.height*0.5, -self.imageView.intrinsicContentSize.width*0.5, -self.imageView.intrinsicContentSize.height*0.5, self.imageView.intrinsicContentSize.width*0.5);
       
//    [self setImageEdgeInsets:UIEdgeInsetsMake(-18,5,0,0)];
//    [self setTitleEdgeInsets:UIEdgeInsetsMake(65,-52,-3,0)];
//}

@end
